package com.wx.mall.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单项
 * </p>
 *
 * @author j
 * @since 2020-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ord_order_item")
@ApiModel(value="OrderItem对象", description="订单项")
public class OrderItem implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "1级分类")
    private Integer categoryId1;

    @ApiModelProperty(value = "2级分类")
    private Integer categoryId2;

    @ApiModelProperty(value = "3级分类")
    private Integer categoryId3;

    @ApiModelProperty(value = "SPU_ID")
    private Long spuId;

    @ApiModelProperty(value = "SKU_ID")
    private Long skuId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "单价")
    private Integer price;

    @ApiModelProperty(value = "数量")
    private Integer num;

    @ApiModelProperty(value = "总金额")
    private Integer money;

    @ApiModelProperty(value = "实付金额")
    private Integer payMoney;

    @ApiModelProperty(value = "图片地址")
    private String image;

    @ApiModelProperty(value = "重量")
    private Integer weight;

    @ApiModelProperty(value = "运费")
    private Integer postFee;

    @ApiModelProperty(value = "是否退货")
    private Integer isReturn;


}
